package cn.cttic.base.api.domain.vo;

import cn.cttic.base.api.domain.BaseDevice;
import cn.cttic.common.translation.annotation.Translation;
import cn.cttic.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 设备型号视图对象 base_device
 *
 * @author TImes.Studio
 * @date 2024-09-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BaseDevice.class)
public class BaseDeviceVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private String id;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 设备型号
     */
    @ExcelProperty(value = "设备型号")
    private String deviceModel;

    /**
     * 设备价格
     */
    @ExcelProperty(value = "设备价格")
    private BigDecimal devicePrice;

    /**
     * 设备大小
     */
    @ExcelProperty(value = "设备大小")
    private String deviceSize;

    /**
     * 设备海报
     */
    @ExcelProperty(value = "设备海报")
    private String devicePoster;

    /**
     * 设备海报Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "devicePoster")
    private String devicePosterUrl;
    /**
     * 设备缩略图
     */
    @ExcelProperty(value = "设备缩略图")
    private String deviceThumbnail;

    /**
     * 设备缩略图Url
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "deviceThumbnail")
    private String deviceThumbnailUrl;
    /**
     * 设备库存数量
     */
    @ExcelProperty(value = "设备库存数量")
    private Integer deviceStockCount;

    /**
     * 设备描述
     */
    @ExcelProperty(value = "设备描述")
    private String deviceDescription;





    /**
     * 创建时间
     */
    private LocalDateTime createTime;

}
